fix same origin problem in test file
first step to make it instantiable