LIB-26: split tests to core, put and read

One program is one test for autotools so we should split that up
to give reasonable output.
FAILED: test_discid
wouldn't give much information on what failed.