additional functions for binary tests