specced out some tests around resource allocation to be implemented
pass the tests, simplistic but reasonalbly ok