Checking options correctly for test flag and admin flags

Before this pull request, we weren't checking for the `--test` flag correctly, so it was always seen as present. Additionally, we weren't allowing users to set `admin_user` or `admin_pass`, so these have all been fixed.