Implmenented a thread queue to request fogbow resources. And fixed the
test for the new implementation