add some tests to ensure it doesnt crash on small files