Added renderer test. Made proper window resize handling.