adding trigger and test class