Tweaked functional tests

Updated database fixture, nicer error reporting for user login.