fix spec tests in some parts