unit tests of objectTools.js