updated tests for API