Added API tests