use .same over .deepEqual
add 'slice' function
add tests for 'slice'