add aithentication specs and test helper