added unit tests for active dataprovider and fixed query tests