Tests moved to executable target

Copy-paste error resulted in tests being (incorrectly) built as a
library.