fixing failing test and adding more test for whitelisting