In my test spec, I have instantiate a class which has to do quite a bit of stuff and I want to make sure that it completes all those operations (db indexing) before the test