Unit tests updated to read from file into memory