Added more test cases to miscellaneous functions.