Changed how rules access the test framework

Instead of enumerating test frameworks each time, we associate the
test framework with the test case now.