Bugs/fixes

I setup mocha and started writing some tests for getting. I found quite a few bugs in JEFRi ObjectStore and fixed them.