tests for browser; uses chai instead of should