tests for index and show