fix strict warnings and remove redundant isset
Add User#getGroups
Add user group tests
fix users controller