Refactor operationSpec realted tests