added tests and new constructor to BAC calculator