added user tests and improved of jsdoc to keep track of testing