Fix error in is_heap_until and is_permutation in algorithm component

Add more tests for algorithm component (only two left!)