Fix illegal mode mapping
Update mock object