[Tests] Add return types and expect specific exception class

1 job for 1.0.0-alpha7 in 2 minutes and 51 seconds (queued for 7 seconds)
latest