Add some native tests

If we want #423 (or AOT compilation), we'd better make sure we don't regress anything.