Renamed test script
Added test for from_header and fixed bug