FLOE-218: pouchDB datasource unit tests

Fixed an issue where the afterChange event wouldn't fire properly and prevented the pouchDBDatasource tests from completing in Chrome.

http://issues.fluidproject.org/browse/FLOE-218