depricate scoped for rails 4, update tests