added test and made table in index.html