add support for SIGUSR1 in test code
moving testing code in a separate qa folder