Adding tests and compiling with require chrome and util/window