[#29] More readable handling of testing environment