Fix duplicated step definitions from the same step locations

Relates to #608, #622, #632 issues.