Update test_rules.py to use fixtureloader

- Use fixtureloader in test_rules.
- create trigger and triggertype fixtures.