Fix chain operations, add test and bump version number