fix test for defaultValue allow functions #975