use check_output in test_profile

getoutput doesn't accept lists properly in 1.x