added junit tests
changed Calendar to Date and fix Audit Logging