Add a test for initWith.