Closes #70
Unit tests for foldable