add test for null config on constructor.