fix show error message
fix tests