Separate gradient and testSyn