fix tests for safari, need to fix for firefox now