Added test for decoder and basic decoder shell, also fixed some build stuff