Fixed superclass constructor implementation and added unit test