Tests for rpeep optimisations in e45d8982ae