added tests for first-non-repeated-character
more concise javascript solution for first-non-repeated-character