add spec for reject
add spec for map