Use SampleProjectRule as @Rule, not @ClassRule

This should improve test isolation, so it might break a couple of flaky tests...