add tests on setting defaultValue