update Strategy class and StrategyTest, add support for sha256 and sha512