modified test functions