Added compare functions for tests