Fix creation of multiple contexts based on classes attribute

Reverts 8ad7cd84

This fixes issue #33. However, it is still unclear why different
beans are shared between test and production code.
6 jobs for master
in 2 minutes and 18 seconds and was queued for 1 second