Fix type test