Revert "added tests and a small fix for semantic analyser"

This reverts commit acbfae0fdb68b5cda0f2f49d4bae999b349a51be.