Fotiman - 4:27 am on Sep 20, 2013 (gmt 0)
The code you posted above has a single quote at the end of line 5 that I think is supposed to be a semi-colon. Also, line 6 is missing a comma after the }.
But fixing those, then the problem is one of scope. When you call test.method1.submeth1, within the function this will refer to method1, not test. The same is true for the call to test.method1.submeth2.
If you want to call those with the scope of test, you could do this:
test.method1.submeth1.call(test, 'my new value');
Within the submeth1 function, this will then refer to the test object. Note, you'd also need to do the same thing for your call to test.method1.submeth2.