Added some tests, and added the adhoc certificate