Added tests for the new Runtime type detection feature