Added testing for attribute typecasting