add tests for inventory layout and management