Teardown

Mockery close.

If the tests uses the times function of mockery, mockery close should be called.
Yes! When i added mockery close to the teardown, some tests started to fail.

My first action was making the tests pass by changing the numbers of times. This at least shows their is something weird here.