validator - runnable versoin with a small test