added one more test for hmacsha256 and simplified some code