Fix missing curly braces for while blocks
Fixing spacing for short ternary operator
Adding test for add curly braces with the smart curly brace placement