Update test to show proper exception