write unit test for base::default