check that field/method is static before trying to invoke it statically
added unit tests for DotGroovyFile