fixed every test function