Fixed tests and fixed escape problem in detail view.