Fix tests outside nose