Added stub tests for all public methods and changed trigger errors to exceptions fixing gh-1
Merged