Added tests and implementation of an index page