move mock from src to test
add directory load support