Separate unit tests for route
Extract abstract common procedure for test cases with database.
tacks#index is implemented in the worst way that one can make