Extracted Hide passed tests logic into separate javascript file.