add a functional inspection test class

Make sure correct code for golang will not have any compile errors or NPE from all inspections.