Added checks for not well defined expiration date.
Adding a test to the TESTS variable will both build and run it.

Have it so adding a simple test is, uh, simple.