bug #898 - add tests
improved tests
change return type to float
better tests
Merge branch 'master' into bug_898

Conflicts:
	src/presence_analyzer/tests.py
fixed conflicts
Merge pull request #2 from aadamski/bug_898

bug #898 - add tests