Add throw() declaration to avoid dead code coverage
Add more tests