Added imports into tests so eval works, also added case for TXT in commit_record