Add test for both file and binary.