Refactored tests and added nested groups tests

Make travis pick up different activesupport for ruby 1.8