test defaultValue method