Processor-in-the-Loop Testing of AI-aided Algorithms for Spacecraft GNC