fix typo in containsSpec and doesnotcontainSpec