Added test for abstracting controller logic to its own service