adding tests for load_and_allocate

relates #44