add test demonstrating custom object with reference