Test case for jRuby activerecord issue on Rails 4