btrfs-progs: tests: use common variables and helpers