Changed test executable to depend on library

We probably should call this example instead of test and have it only
build if you set a flag.