fixed duplicate work in test