writes failing test for basic auth integration
implements basic auth