Add unit tests and fix rootcerts creation bug
Add test for expired certificate

Will only work after tomorrow