make minor tweaks to allocation model and add tests for raising exceptions