update internal signature for cs_close()
minor refactoring in version tests