added some tests to cover exceptions

Maybe you just didn't want to include them, but in case you did I already made some tests that cover some cases where the code should throw an exception.