Add test for #17 (seems to be solved in the last exceptions refactor)