Fix strong authentication, add new tests