Refractored add comments smoke test and added code to verify close button fucntionality