Inject $location service instead of passing it directly
No hover needed
Add unit tests for user controller