Fixes #1019 by adding validtion that @ClassRule should only be implementation of TestRule