fix before_test script