Fixed: incorrect expected exception in test