adding tests for Rules