Also build static library
Link order matters. Put -l after the .o files.
Include . (current dir) in search path for shared objects (.so)

make test should now (again) run without errors. If not, please
report.