Negative test cases for item browsing and some refactoring to share test setup code.