Tests refactor

@dinhviethoa This CL is essentially just a refactoring to move spark_test.dart to lib/tests.dart. It's no longer an entry-point; it seems cleaner for it to live in the lib directory (and to no longer inherit from the Spark application class).

There's a tiny bit of additional cleanup in the test code itself.