added test file and configuration
set up for tests, tweaked exceptions
adding getBits tests