added tests for obj.js