updating _.extend
adding unit tests for _.extend