Fix app names, write test case to reproduce a bug