tests: add tests for the bash prompt functions in the completion script