Test framework and auth tests