Added test for adopting state