Add a test to compare with boost implem