added support for oid generation when encoding. Expanded testing
Changed encoder test class name to encoderDecoder as it makes more sense to test it in one class
Added more tests for Encoding/Decoding