Remove non-existing test reference
Remove redundant parameter
Remove redundant variable
Remove redundant select-tool
Remove redundant rest parameter
Extract assertions to dedicated functions