test suite improvements, docs, polish