moved void test_getId() and testRefUnref() to place the same
category functions at the one block.