add ExpectedException attribute to make test passing