renames flush method to commit
added session commit operation to dispose method
renamed flush method to commit
added session scope session tests