added input test for ref