fixed failed test case and cleaned up errors in intention