amplitude: added pageview, made initialize test more robust