fixed errors in our tests

Fixed following errors
* fixed access non-static methods in main
* **[IMPORTANT]** pos/names.mj is incorrect - java doesn't allow to redefine variables and parameters - this file was moved to scopes.mj
* added foo.java as a new correct test