test should check for the right exception