tests for obj.js