added simple test/validation mechanism