added Tests to a Class based Service with cors enabled