Bugfix + added tests from backbone.js + added edge cases in readme