Added tests for 'variables' function