Tests asynchronous -> synchronous

Added trait to stop actor system after the test