run binary with profile mode in the test