MODULES-1413 Add spec test to capture failed scenario
MODULES-1413 Add check if item responds to empty? before asserting it is not empty