use chai assertion library. Fix Device exports