Add algorithm and test for includes