validation: more tests, return value validation fix

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>