Modified lib/misc.js build tests.
build tests: moved calls of object constructors inside a separate test, renamed all objects to "obj".