slightly refact SpringContextRule's constructor