The comment line breaks the command continuation in Bash. The backslash \ at the end of a line continues the command to the next non-empty, non-comment line. Since # Test is a comment, ca-certificates is interpreted as a separate command.
Fix: Move the comment to the end of a line with a continuation or another argument:
bashapt install \ htop \ # Test ca-certificates
or
bashapt install \ htop \ ca-certificates # Test
Vibe can make mistakes. Check answers. Learn more