Fix nose test
Fix tests