add test. fix ambiguous braces