Fixed bug in assert_raises where exceptions passed
Implemented providers, with tests