main function should work if test works
test not working