Mode tests and cleanup

Created unauthorized and forbidden helpers
Fix non-logged in used to be unauth instead of forbidden
Fix more typos caught by tests
Create helper client class to simplify tests some more
Add tests for create/update network attributes