add a test target and the automatic rebuilding of the package