Adding unit tests to security and validation utilities