More tests for user and group

Added tests and split up some existing ones