Check validation error
Fix timing edge case in test.