Fix bug where waitUntilFreePlace did not behave correctly when __putLimit() was never used
Adding first battery of tests.