Add debug mode to erlinit for testability and add run_erl test