API of login form changed, updated tests to reflect this change. Fixes #129.