fixing #563 by using delayed removal for a layer that's loading
mocking layer state in layer store tests
Merge pull request #629 from aodn/issue_563

fixing #563 by using delayed removal for a layer that's loading