Converting main methods to tests.
Converting main methods to tests.