Update servicesSpec.js

Added basic unit test for service