Fixed code in test