Added checkThrown test to decode array