added logging features and test expiration mechanism
added test expiration mechanism