another attempt at unit testing