Factor out misc tests into their own test file.