check constrictor is not undefined
ignore failed tests
tidy up some code