fix tests cases