Issue 187 add proper equals method testing for config

Closes #187.
Sorry for the size of this PR but automated proper testing requires a few lines of code...
I change this to use a factory. just forgot to these lines.