Split the tests out into a separate file

In order to be able to drop the run-time dependency on ERT, split the
tests into a separate file. Also drop the ERT dependency, since it's not
needed anymore.

Requested-by: Steve Purcell <steve@sanityinc.com>
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>