Added basic test, completed basic lexenv leaking.