Extended these test so also the exception which can be thrown is tested.