objectsize: add a few more tests and fix a bug