Fix fatal error
Add some basic tests