Refactor tests to use RavenTest