fix and enable tests for TER search