added test functions