Unit test for setting inputs