create unit test for accept