added comments to test for better understanding