removed type-specific interpretation functions and unified test code