TEST: check ValueError exceptions

Hi,

Addition of two tests to increase coverage.