Fixed a lot of tests.
Merge pull request #161 from mikedao/fixing_item_repository

Fixed a lot of tests.