Write spec tests to mark boxes as avaiable or not

- Test for Boxes in database also