tests: Move client testing to check_daemon

Also add real client tests that get and send over the socket.
Remove extra semicolon
core: Remove double include of config.h