Fix a variable definition error
Add unit test for glomming