Add badge for CodeClimate and add some tests