Create lib to share with contracts tests