Updated GraDual test (more generic so as to test with varying values of arguments)