Renamed `ht` to `im` in tests for consistency