Fix getIsGuest method
First tests
Fix user groups linking error
Small fixes
Add bizrule tests and permission tests