Add tests and un-xfail a few issues

Closes #4545
Closes #5791
Closes #6470
Closes #8044