all specs run again
fixed bugs caused by ruby 2.1 and rails 4.1