Fix set-but-not-used warnings in Domains/Chemistry tests.

Change-Id: I54643fdc5079de1f2f52b51a94af5bfe9301f6ab
Merge topic 'chemistry-warnings' into master

41ddc334 Fix set-but-not-used warnings in Domains/Chemistry tests.