Add construct() and its tests.