Tests file reading code. Fixes '}' Syntax error inf main method