Added tests.py to check and fix getFrameFromBytearray which does now what it should