add stub file test

add test function for file