Fixed bugs that the program terminates on using an axiom including equality literals (=, !=).
Added codes for testing.