Fix implementation in test