Bug online variable bug

#383 
@sharybeshara please review code
@mohamedkhaledabdel please review scenario
@AbdelrahmanSaad please provide a documentation review.
@moazelnashar please review the tests.