added test for the constructor

This is not necessary since the `config` variable is used just a few rows down and it will throw an exception there if it's `null`.