Bug fix in `Terms`. Parameter tuning and test fixes.