preliminary test functions