Add BSD tests.

BSD style use either __.SYMDEF or __.SYMDEF SORTED for its symbol table.

Also file names may include null characters, so strip them out.