Removed safeCtype functions; added testing.