Fixed the tests

Fixed the tests by passing the admin views when in test modus. Some tests are broken and should be fixed.
Channel and Document Test