fix typecast test