Fixed syntax bugs
Test case