refactor test case, speed up.
Fix a javadoc link