Moved NanoJPEG files into new a new package, minor bugfixes in test classes