#21 test: remove duplication function.