Added unit tests for detached rulesets. #186