Begin adding tests

Code coverage is only at about ~58%, but it's better than the current 0%.