added a failing test with while and map