add test to object passing