added file test to spec