refactor term comp test