Added rudimentary tests, fixet wall length bug