Added main and fixed test case so it doesn't pass by default