Unit Testing

Unit testing of key server features.