finished API tests