Fix tests: Workaround nose bug and relax requirements on nose version