Ultrasonic testing of building materials