fixed problem where an expected exception was not thrown. also added a license