Add a new spec for testing getCode()