Preamplifier design and test