tests for private functions