Test refactoring typo fixed

The patch is submitted under MIT license