Piezo class tweaks and additional tests.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>