Improved test. Compared reference_code should be hard-coded and not used from the object.