Fixed mistake in bits to shares and added a test