Generic code for testing squire modules