[TASK] Outsourced file handle offset check and added tests- refs #11