Update test_rules.py to use fixtureloader

- Use fixtureloader in test_rules.
- create trigger and triggertype fixtures.
Fixed at cdeafd3fc4939e63f11a8811e59fa72b95864f15