fixing test compilation issues