added tests for getCreatedOn and getExpiration
added null exceptions for getCreatedOn and getExpiration