improved bin tests