Rules for session.bug_compat_42, session.bug_compat_warn and session.hash_function

Added in tests for session.bug_compat_42 (ERRROR), session.bug_compat_warn (WARNING) and session.hash_function (WARNING).