tests nearly all passing