metamer: fixed tests for messages components to be compilable on JDK 6 (RFPL-3041)