Adding final fix for time
Adding endian test code