test and function stubs