resolve travis environment reference and assertRaises