Fixed some tests, added new cases (including map and flatMap), added a way to run all tests from the command-line (no JUnit).