Added tests for isValidTransition and validated that it works fine after all. This closes #2