Create test for  method