test program can run, but result is wrong