move test class to src/test, fix typo in javadoc