how about just prepending `cmd` with `cd test && `?