pkg: using assertion-error 1.0.0
lib: code cleanup and rename #assert
test: #assert change