Split the test app into 2 application projects and a library project.  The Library shares common code for the scanner and Barcode pieces while the two apps are the Barcode Service that gets started at runtime and the User App which talks to the service.