tests added for service and controller