Add test for popcount function.