Fix test cases compilation