added optionvalidator test
make sure tests work as expected + enhance example