Miscellaneous test code.