Fix tests

+ remove serializeView properties
+ move libs into core
+ cleanup window._ treatment in AgentSpecRunner