Added try and throw to test for invalid input to itemManager.