Added Tests

Added tests for the analyzer and the fix