Integration test when asked for token with invalid details