Updated test suite to run all tests. Ported first 4 cases from ruby to javascript to get them passing.