adapted spec to recent change