Consolidate all tests into a single tests directory

All tests pass.

Also fixed an issue with the LZW decoder that resulted from some Python 3 code being merged in from one of the other branches.