require("newobject1")

foo1 = newobject1.Foo_makeFoo()
assert(newobject1.Foo_fooCount() == 1)

foo2 = foo1:makeMore()
assert(newobject1.Foo_fooCount() == 2)

foo1 = nil
collectgarbage()
assert(newobject1.Foo_fooCount() == 1)

foo2 = nil
collectgarbage()
assert(newobject1.Foo_fooCount() == 0)
