build: improve the Jamfile and add basic tests