Work in progress: writing test for last char curly brace issue