add unit tests for pbkdf2
fix all platforms