add __construct() and __destruct() to tests