Add tests for rails minor versions >= 3.1