Have store use class id if available Fixes #50

There was a problem with the integration test that should be
resolved by writing a more robust test. By using the activePool
more directly, there were issues with the ids of the two separate
pool instances matching up, causing unwanted results.