added high level test and fixed error