reduce number of loops in nosetest for test_add