Fix typo in test
Remove duplicated code.