Added tests for whitelist