making tests for decoding objects. Runs through but is ultimately incorrect.. but close