check if node exists before inheriting comments to it
fix newline in case statement test