cleaned test functions