Removed unnecessary cast in test