refactored parse_queue_commands
added tests for loading and exiting and changed queue to cache
Added more tests