intro to $q
fix service unit tests