Adding tests, works for ubuntu 12.04