add tests for BuildSettings add/remove functions
add tests for BuildSettings add/remove functions

- also convert them to static functions and use a single `private:` attribute

D-Programming-Language/dub,grogancolin/dub,rjframe/dub,gedaiu/dub,Geod24/dub