fixed test to compare types