Added UnitTest (from Backbone) for additional compatibility

https://github.com/documentcloud/backbone/blob/master/test/model.js