Added test class for testing the Terminal rules