add test code for negative value for absolute method.

add test code for negative value for absolute method.