Fixed stupid bugs in test_helper