fixed bug with loop when GetOrdersCalled
added tests for GettOrders() loop bug
TODOs added