Tests - added assertion for getOfType() case