completed test spec function