Fixed tests to shutdown actorsystem