R: fix tests