Content provider and test code

Content provider support added.