Additional objectID validity checks
Remove unwanted comment
Fix file closing in partial write test

Was attempting to close the wrong file. Did not error on OS/X for some
reason, but errored on Linux.