Fixed issues #45 and added a supporting unit test

Fixed issue #45 and added a supporting unit test
@azaytsev 
I believe that TestNG by default fails a test method if the Test method generates an exception. So do we really need to wrap this within a try..catch block ?