MINOR: Unit test object usage changes