#58 Added a catch for the test environment and sync flag
#58 Adding RuleSetService tests
#58 Adding RuleSetService tests