Added some minimal tests. Should use scripted shortly.