adds assertion to return value of setValueForKeyPath