Don't cache data in session if user can change them (to avoid having to invalidate caches). Also fix a bug in call to test_connection()