tests working, added file variable