Added basic test of functionality and test of expirations.