Make tests not error out, fix a bunch of tests for 5.7, add config tests.
Merge pull request #1115 from KorvinSzanto/fix_tests

Make tests not error out, fix a bunch of tests for 5.7, add config tests