Txn Queue clean up and test added

cleaned up, made parallel and added new test