Add tests for binary validator