write tests for Warehouse.__init__