Added several tests for API default method logic.