refactored init_adapt function to call a simpler init_adapt function that can be called through tests
adding a test that fails for init_adapt<>