fix test, refactor tripleService