added some tests to details page controller