implemented inventory model test