Test assign mdsapi to window