Added function to get resource type from 245h
Added function to get resource type from 245h
added tests for getting resource type from 245h