Added command testing code to testcode for receiver