added spec unit test