completed javadoc. moved output of tests to STDERR