tests: update to show types on runtime cast errors