Laboratory tests of the Pulse Height Analysis system for Wendelstein 7-X