Add some pf tests and add swap endianness test