fix(Resource): fix missing native id field when using class `fields` property.

Added a version of basic tests for fields specification.