added test for accept method