[Fix] Visualization mock, additional method and window.google existence check

- Checking if window.google is undefined before creating window.google.visualization to allow for other mocks that define window.google
- Adding necessary mock of window.google.setOnLoadCallback function