Add rails 4 and 4.1 to travis
Add tests for more complicated table structure