Test exceptions being thrown etc