Add tests for data_uri module

Address reviewer comments
Merge pull request #947 from carolinux/improve_test_coverage

Improve python test coverage