added unit tests from backbone-nested