changed enum test to not use instanceClass