added test 5, there's a bug when parameter in a is negative