use lodash isPlainObject so mongo ID's can be supported
use actual id's so mongo tests will work
fix incorrect syntax
add test for null values
fix typo