Change testing to use Rules.