break out test run to a seperate method; fix relative require