fix contracts tests