Adding a test for multi-line class details and fixing related issue