tests refactor and extension - fixes
add tests and extend certificate generation
configuration improve
minor fixes