Test added for intended functionality