Added tests for reading files