There is nothing wrong with this type of testing ESPECIALLY if you want to verify the error message. +1