Exception improvements
Test added
Tests integrated with travisCI