fix tests errors