Fixes

Closing aetest instances on goapp test
Putting a mutex on the local cache so multiple goroutines in the same http request don't overwrite eachother