#1042 removing all code marked as obsolete
bump up warning levels now obsolete code gone
#1039, #1042 fix tests