Fixed tests to work with authenticated users