fixed phpspec issues