additional tests for checking proper handling of '}' and '\}'