make test_all depend on libcaffe.a ("make test" without having first run
"make all" failed before this change)