Add test cases for the PWM capture API using PWM signal loopback. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>