Add unit test with custom item class.