Build testing function