Add test for preventing buying without enough space