bet type Equal and unit test