Revert "Revert "Added test""

This reverts commit ab556e20c45bcf12cf655cd06a2a88d31e91ed37.