Tests for ChemObject compare() methods.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
Object equality null-safe testing.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>