Add tests for locals and super
Tests are for issues #27 and #20, respectively.