Added function to read file into byte list and a test for the length