test functions written