fix type errors in tests in compiler