Add tests for show action in items controller.
Refactor items controller.