service and model layer testing