tests for invoking methods