fix test failure and missing import

test_task renamed to trivial_task so it won't get run by nose.
Added config argument.