Fixing function specs