Kyle unit tests

@krpeffer