fixed test setup and properly cleaning collections