Add test for manipulating functions