ported Jukka's work on testacular test config