Added testing code to RASDemo