Added multiple test cases for IM