Test against last stable version of each minor version, including 4.0

Reorganized the tests so they now test against the latest version of each minor.