Improve pch support. Move configuration tests to their own directory so they're only run when required.