test case for raising proper exception every time broken parameters accessed