ThemisJS testing fixes