fix test and use nose