Added integration test to verify SELECT ... FOR UPDATE
Replaced use of String.valid? with is_binary