miscellaneous test code