Add more tests

In fairness, so is `locals()`.