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