simple tests with exception raising