fixing spec tests