Added test for runtime type
Merge branch 'USERGRID-1185' of github.com:apigee/usergrid-stack into USERGRID-1185