Add test around functionality