binary number test based on Miss Moon