#JC-1361 Refactoring of tests and fixing javadocs