dynamically create Configuration class when performing tests