add constructor
implement equals method for test
add Config Test.