made some members protected
minor test fixes