changed structure. Added test templates. And changed struct config