add a test for the usage of class and variable