Fix contructor in test