Add test for Valid.