fixing spec test issue